<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>支付方式</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<meta name="format-detection" content="telephone=no, email=no" />
<link rel="stylesheet" href="{{ url('/common/mobile-common/common.css') }}">		
<link rel="stylesheet" href="{{ url('/mobile/css/header.css') }}">		
<link rel="stylesheet" href="{{ url('/mobile/css/goods/payway.css') }}">	
<script src="{{ url('mobile/js/jquery-1.8.3.min.js') }}"></script>
<script src="{{ url('/common/mobile-common/hmt.js') }}"></script>
</head>
<body>
	<div class="abouts">
		<div class="wrap-cont clearfix">
				<!--end-->
				<!--收货地址-->
				<div class="address clearfix">
					<img src="{{ url('mobile/images/addreee.png') }}" class="dw-icon">
					<p>
						<span>{{$payData->receiver}}</span>
						<span>{{$payData->phone}}</span>
						<em>{{$payData->province}}&nbsp{{$payData->city}}&nbsp{{$payData->address}}</em>
					</p>
				</div>
				<!--end-->
				
				
				<!--订单内容-->
				<div class="wap-cont payway">
					<!--<div class="orders">						
						<div class="orer-info clearfix">
							<img src="{{ url('mobile/images/dd-im.png') }}" class="cus-img">
							<p class="card-style">
								<span>北京旅游年票</span>
								<em>类型:&nbsp;实体卡</em>
								<em>单价:&nbsp;100.00</em>
								<em>数量:&nbsp;1</em>
								<a>实付金额: &nbsp;<i>¥200.00</i></a>
							</p>
						</div>
					</div>									-->
					<!--end-->
					
					<!--支付平台-->
					<div class="pay-pt">
						<p class="pt-tit">
							支付平台
							<!--<span>跳转至平台支付</span>-->
						</p>
						<p class="zf-way">
							<span><img src="{{ url('mobile/images/wx-zf.png') }}"></span>
							<em>微信支付</em>
							<input type="radio" value="0" name="1">
							<img class="img" src="{{ url('mobile/images/no-check.png') }}"/>
						</p>				
					</div>
				</div>
				<!--<a class="ydxy"><input type="checkbox" checked="checked"><img class="img" src="{{ url('mobile/images/check.png') }}"/>《55茗果支付服务协议》</a>-->
				<!--end-->
				<div class="all-price clearfix">
						<p>
							<span>合计: <i>¥{{$payData->total_price}}</i></span>
							<a href="/wechat/jsapi?id={{$payData->id}}" class="unopt">付款</a>
						</p>
					</div>
				
		</div>
	</div>
	<script>
		$(function(){
			//点击单选框复选框按钮样式
			$("input[type='radio']").click(function(){
				if($(this).attr("checked")){
					$(this).next().attr("src","{{ url('mobile/images/check.png') }}");
				}
				else{
					$(this).next().attr("src","{{ url('mobile/images/no-check.png') }}");
				}
			});
			$("input[type='checkbox']").click(function(){
				if($(this).attr("checked")){
					$(this).next(".img").attr("src","{{ url('mobile/images/check.png') }}");
				}
				else{
					$(this).next(".img").attr("src","{{ url('mobile/images/no-check.png') }}");
				}
			});
			//付款
			$(".unopt").click(function(){
				var radiCheck=$(".zf-way input[type='radio']:checked").val();
				var boxCheck=$(".ydxy input[type='checkbox']").attr("checked");
				if(radiCheck==undefined){
					alert("请选择付款方式");
					return false;
				}
			})
		})
	</script>
</body>
</html>
